using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
namespace SRW.SetInfo
{
   class SetWtproblem
   {
      public static SqlCommand Set_Wtproblem_Data(SqlCommand cmd, Wtproblem mWtproblem,bool CheckPk)
      {
         
         if (!(string.IsNullOrEmpty(mWtproblem.pkID.ToString())))
         {
            if (CheckPk)
               cmd.Parameters.AddWithValue("@pkID", mWtproblem.pkID);
         }
         if (!(string.IsNullOrEmpty(mWtproblem.wtproname.ToString())))
         {
         cmd.Parameters.AddWithValue("@wtproname", mWtproblem.wtproname);
         }
         if (!(string.IsNullOrEmpty(mWtproblem.wtprotype.ToString())))
         {
         cmd.Parameters.AddWithValue("@wtprotype", mWtproblem.wtprotype);
         }
         return cmd;
      }
   }
}
